#!/bin/bash

#hadoop jar eagg.jar -conf dfof.xml  eagg.dfof.dFoF -input cosmo25-eighth-43.bin -output testoutput -numPart 8

touch .dfof.run
#hadoop jar eagg.jar -conf dfof.xml  eagg.dfof.dFoF -input cosmo25-32-43.bin -output testoutput -numPart 8

#hadoop jar eagg.jar -conf dfof.xml  eagg.dfof.dFoF -input cosmo25-92-8/* -output testoutput -numPart 32

hadoop jar eagg.jar -conf dfof.xml  eagg.dfof.dFoF -input dense-8 -output testoutput -numPart 16

if [ .dfof.run -ot dFoF-plan.final.dot ]; then
    dot -Tpng -O dFoF-plan.final.dot
    [ -d ~/www ] && mv dFoF-plan.final.dot.png ~/www/dFoF-plan.png
fi

[ -e .dfof.run ] && rm -f .dfof.run
